'''
coding:utf-8
@Software:PyCharm
@Time:2022/8/11 18:14
@Author:liuyi
'''

import requests
import re

str = requests.get("https://www.sanchuangedu.cn/").text
# <img src=xiayuzhen.jpg width="400" >
imgs = re.findall("(?<=<img src=).*(?= [A-z])",str,re.M)
for i in imgs:
    img = requests.get("https://www.sanchuangedu.cn/"+i).content
    with open(i,"wb") as f:
        f.write(img)